package com.base.load

import android.view.ViewGroup


interface ILoad {

    fun load(view: ViewGroup)

    fun error(view: ViewGroup)

    fun net(view: ViewGroup)

    fun notice(view: ViewGroup)
}


interface LoadControl : ILoad {

    fun addView(view: ViewGroup)

    fun removeView()

    fun getState(): LoadState
}

enum class LoadState {
    NONE, LOAD, NET, NOTICE,ERROR
}